﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DomainModel.JSON
{
   
    public class jsModelRow
    {
        public int id { get; set; }
        public string[] cell { get; set; }
    }

    public class jsModelInstance
    {
        public jsModelInstance(int Records,int Page,int Rows)
        {
            records=Records;
            page = Page;
            int pager = 0;
            if (Records % Rows > 0) pager++;
            total = (Records / Rows) + pager;            
        }
        public int total { get; set; }
        public int page { get; set; }
        public int records { get; set; }
        public jsModelRow[] rows { get; set; }
    }
}
